package com.youth.log;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName OperationLog
 * @Description: TODO
 * @Author yjwu
 * @Date 2020/4/8 12:14
 **/
@Data
public class LogEntity implements Serializable {
    private static final Long serialVersionUID = 1L;

    private String id;
    private String modual;
    private String type;
    private String desc;
    private String method;
    private String params;
    private String response;
    private String userId;
    private String userIp;
    private String localIp;
    private String uri;
    private int doExLog;//是1否0 是异常信息
    private String exceptionMsg;//异常信息
    private String exceptionName;//name
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private Long totalTime;//总时间

}
